<?php defined('_JEXEC') or die('Restricted access'); ?>
<script language="javascript" type="text/javascript">
var fieldMsg = {
	oid:"请选择观测站",
	precipitation: "请选择观测站",
	datetime: "请选择记录日期",
	temperature: "请输入气温",
	precipitation:"请输入降水量",
	sunshine: "请输入日照量",
	wind:"请输入风速风向",
	PH:"请输入PH值",
	element:"请输入成分分析"
};
</script>
<form id="adminForm" method="post" name="adminForm">
	<fieldset>
		<div style="float: right;">
			<button class="submit" type="submit" onclick="saveForm(this.form);">
				保存</button>
			<button type="button" onclick="window.parent.document.getElementById('sbox-window').close();">
				取消</button>
		</div>
		<div class="configuration">
			新增环境记录	
		</div>
	</fieldset>
	<div class="">
		<fieldset class="adminform">
			<legend>新增环境记录</legend>
			<table class="admintable">
				<?php JHTML::_('farm.obserDropList'); ?>				
				<tr>
					<td width="120" class="key">
						记录日期:
					</td>
					<td>
						<?php echo JHTML::_('calendar', '', 'datetime', 'datetime', '%Y-%m-%d', array('class' => 'inputbox required', 'size' => '25', 'maxlength' => '19', 'readonly' => 'true')); ?>
					</td>
				</tr>
				<tr>
					<td width="120" class="key">气温:</td>
					<td>
						<input class="inputbox required" type="text" name="temperature" id="temperature" size="30" value="" />
					</td>
				</tr>
				
				<tr>
					<td width="120" class="key">降水量:</td>
					<td>
						<input class="inputbox required" type="text" name="precipitation" id="precipitation" size="30" value="" />
					</td>
				</tr>

				<tr>
					<td width="120" class="key">
						日照:
					</td>
					<td>
						<input class="inputbox required" type="text" name="sunshine" id="sunshine" size="30" value="" />
					</td>
				</tr>

				<tr>
					<td width="120" class="key">
						风速风向:
					</td>
					<td>
						<input class="inputbox required" type="text" name="wind" id="wind" size="30" value="" />
					</td>
				</tr>
				<tr>
					<td width="120" class="key">
						PH:
					</td>
					<td>
						<input class="inputbox required" type="text" name="ph" id="ph" size="30" value="" />
					</td>
				</tr>

				<tr>
					<td width="120" class="key">
						成分分析:
					</td>
					<td>
						<textarea name="element" id="element" rows="5" cols="40" class="required"></textarea>
					</td>
				</tr>

			</table>
		</fieldset>
	</div>
	<div class="clr"></div>
	<input type="hidden" name="task" value="saveEnvironmentRecord" />
	<input type="hidden" name="controller" value="<?php echo JRequest::getWord('controller', 'operation'); ?>" />
	<input type="hidden" name="option" value="com_farm" />
	<?php echo JHTML::_('form.token'); ?>
</form>